package cc.mcyx.ychat

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.context.ApplicationContext
import org.springframework.context.annotation.EnableAspectJAutoProxy
import org.springframework.data.redis.repository.configuration.EnableRedisRepositories
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc


@SpringBootApplication
@EnableRedisRepositories
@EnableAspectJAutoProxy
@EnableSwagger2WebMvc
open class YChatApplication {
    companion object {
        lateinit var applicationContext: ApplicationContext
    }
}

fun main(args: Array<String>) {

    YChatApplication.applicationContext = runApplication<YChatApplication>(*args)
}